# -*- coding: utf-8 -*-

DEBUG = True                                                        # DEBUG 开关
SERVER_PORT = 8999                                                  # 服务端口号
SQLALCHEMY_ECHO = False                                             # SQL语句打印否
SQLALCHEMY_DATABASE_URI = 'mysql://root:root@localhost/food_db'     # 数据库连接地址
SQLALCHEMY_TRACK_MODIFICATIONS = False                              # flask的追溯模式
SQLALCHEMY_ENCODING = 'utf-8'                                       # 编码方式
AUTH_COOKIE_NAME = 'mooc'


#阿里云的ip地址:
#118.31.77.155
# 如果出现json乱码的话
JSON_AS_ASCII = False

# 过滤URL
IGNORE_URLS = [
    "^/user/login"
]

IGNORE_CHECK_LOGIN_URLS = [
    "^/static",
    "^/favicon.ico",
    "^/api"
]

# 分页的处理方式
PAGE_SIZE = 50
PAGE_DISPLAY = 10

# 状态
STATUS_MAPPING = {
    "1": "正常",
    "0": "已删除"
}

RELEASE_VERSION = "20190303002"

UPLOAD = {
    'ext':['jpg','gif','bmp,''jpeg','png'],
    'prefix_path': '/web/static/upload/',
    'prefix_url': '/static/upload/'
}

APP = {
    'domain':'http://118.31.77.155:8999'
}

MAIN_APP = {
    'appid':'wxb34895d723feac20',
    'appkey':'c1b66fde580747dcd296e628fc601a54'
}
